Cognizant interview question

Technical was on coding. Pseudo code in any language