Xuandi Ren's submission of SubInversing | CodeChef