Cognizant interview question

Swift and CI based