Cognizant interview question

String reverse program Armstrong number