Few testcases are passing
@tharun you are just printing two indices what if a number occurs m no of times .
your code will not work for general.
also print in same line after spaces.
correct your code for these cases
@tharun you are just printing two indices what if a number occurs m no of times .
your code will not work for general.
also print in same line after spaces.
correct your code for these cases