21shares interview question

How would you solve xyz?