Shahjalal Shohag's submission of SubInversing | CodeChef