Diya Systems interview question

Aptitude + technical easy it was