Pergunta de entrevista da empresa Liftoff

valid sequence question with growing sequence.