Coding Interview Prep: BST Serialization in Java