TD Interview Question

Please solve this question about a problem they are currently facing