Serialize/Deserialize Binary Tree
Serialize a given binary tree to a file and then deserialize it back to a tree. Make sure that the original and the deserialized trees are identical.
Serialize: Write the tree in a file.
Deserialize: Read from a file and reconstruct the tree in memory.
Consider the below tree as the input tree: