UC San Diego Interview Question

How would you explain and solve this problem for your students?