HCLTech interview question

Interview based on Javascript