Pergunta de entrevista da empresa Walmart Global Tech

Some DSA questions related to subsequence