Cognizant Interview Question

Javascript functions.