Masoom Mittal's submission of The Wave | CodeChef