Pentair Interview Question

Please explain the approach you took for solving this problem.