schuh Interview Question

How would you solve (x)?