pramod's submission of Magic Set | CodeChef