Unlock(Hashing)


Why is it failing the test cases?

@Karanveer,
Your code fails on,

Input
5 2
1 2 4 3 5