Infosys Interview Question

Basics one line coding output question