Pergunta de entrevista da empresa Pentair

Please explain the approach you took for solving this problem.