Karan Aggarwal's submission of Root of the Problem | CodeChef