Sojern Interview Question

Easy level code question