Cognizant interview question

TO explain about various Algorithm Codings and Time complexity