Cognizant interview question

Bean life cycle. Reverse the integer. PAtteern progarm.