XYZ interview question

Coding 2 rounds , HR 1 round.