Cognizant Interview Question

write a code for the given program