Root of the Problem | CodeChef