Pergunta de entrevista da empresa BNY

Asked about the subsequence question