UBS Interview Question

Technical question 1