Juni Learning Interview Question

How do you solve this problem?