Cognizant Interview Question

pseudo code / coding questions