Sorted Squares - Coding problem | OneNoughtOne