tushar gupta's submission of Magic Pocket | CodeChef