UnitedLex interview question

How do you solve XYZ