Pergunta de entrevista da empresa Filed

How would you tackle the given problem?