Unlock challenge


whats wrong in this code it passes the sample case but fails all other cases

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

@aa1 https://ide.codingblocks.com/s/320195
i have made changes but now it passing only one test case

@naazsayma123
here i have corrected your code .refer to this