Arshia's submission of SubInversing | CodeChef