Pergunta de entrevista da empresa Segari

check if given sequence is part of another sequence, they will also ask the time and space complexity of your code