Sollicitatievraag bij ING

How would you solve this coding problem