Infosys Interview Question

Aptitude question where the attempt is valued