Binary Tree Serialization(LintCode 7):

Problem