XYZ interview question

basic core concepts