Dinesh Goyal's submission of Stone | CodeChef