Pergunta de entrevista da empresa Sherwin-Williams

Technical questions and how to solve it