Cognizant Interview Question

TO explain about various Algorithm Codings and Time complexity