HCLTech interview question

Write a simple JavaScript Program.