Dinesh Goyal's submission of Magic Pairs | CodeChef