HCLTech interview question

Explain the working of a compiler with a program