TD Interview Question

scenario question