Pergunta de entrevista da empresa AiCure

Do you have any suggestions to solve this problem ?