Infosys Interview Question

Aptitude Coding It was easy to crack if we know