Cognizant interview question

Javascript functions.