Compare two arrays — check if they are equal (same elements & order).: Medium Programming Problem