Frog sort in java https://www.codechef.com/viewsolution/42972467
This code i wrote is giving wrong answer Please Help