Cognizant interview question

Basic Level Programming for Non CSE branch