aman agarwal's submission of Magic Set | CodeChef