Sagar Prasad's submission of The Wave | CodeChef