C2 Education Interview Question

imagine you are a student, how would you solve this problem