Cognizant Interview Question

Different Program codes