I was told to write a code to serialize and deserialize a binary tree. That is for serializing, root node is given on parameter and we have to return a string whereas deserialize is converting given string to binary tree and return the root of the tree,
To make it more clear I am attaching the link of the question:
https://leetcode.com/problems/serialize-and-deserialize-binary-tree/