Check if a String is a Valid Sequence from Root to Leaves Path in a Binary Tree