Meta interview question

Leet code medium question using stacks. (Both questions)