Https://ide.codingblocks.com/s/314384

this code did’nt pass any test cases but yet the sample test case output was correct;
Please tell me what was wrong with this code

@jayasmit98
for inputs where less than k swaps are possible your code is not running at all