XYZ interview question

Dsa system design console application