Palle Technology interview question

It was an aptitude question