Remove All Adjacent Duplicates in String II - Leetcode 1209 - Python