Cognizant Interview Question

basic coding questions related to numerical problems