Flipping The Matrix Hackerrank Solution Swift