LINQ provides a built-in function for checking the equality of two IEnumerables, and that function can be used on arrays.
The SequenceEqual function will return true if the arrays have the same length and the values in corresponding indices are equal, and false otherwise.
int[] arr1 = { 3, 5, 7 };...