Maximum Sortable Partitions - Coding problem | OneNoughtOne