Pentair interview question

Please explain the approach you took for solving this problem.