UnitedLex Interview Question

How do you solve XYZ