Infosys interview question

Basics one line coding output question