IBM Interview Question

String operation and sum reverse method in HackerRank