Snap Interview Question

Can you solve this coding problem?