Google interview question

Leetcode Easy: Valid Parenthesis Leetcode Easy: Letters Subset