Shreyash Gupta's submission of Magic Elements | CodeChef