Pergunta de entrevista da empresa Madison Reed

Difficult situation and how I re solved it.