Cognizant Interview Question

Bean life cycle. Reverse the integer. PAtteern progarm.