Pergunta de entrevista da empresa Applied Intuition

Grid question, find optimal cell to place base