Cognizant Interview Question

Simple JavaScript basics qustions