Karan Aggarwal's submission of Maximum Magic Walk | CodeChef