Please look into and debugg my code
@sattyrajpoot39 hey satyam your approach is not give correct output over large test set like swapping will not work instead you have to store your array to your hash map.
@sattyrajpoot39 hey satyam your approach is not give correct output over large test set like swapping will not work instead you have to store your array to your hash map.