Alfarhan Zahedi's submission of SubInversing | CodeChef