ING interview question

How would you solve this coding problem