XYZ interview question

Technical