Cognizant Interview Question

Write codes of few programs