Dinesh Goyal's submission of Magic School | CodeChef