's submission of Magic Subset | CodeChef