Parsing A Boolean Expression | Leetcode 1106