Minimum Swap Distance - Coding problem | OneNoughtOne