Cognizant interview question

prebuild code example