Pergunta de entrevista da empresa Walmart

Longest stack length problem from data structure