Pergunta de entrevista da empresa StayGlad

They asked me puzzle.