Trung Nguyen's submission of SubInversing | CodeChef