Palle Technology Interview Question

It was an aptitude question