Implement a decode and encode function of a general N-ary tree. | Google Interview Question | Practice Free | SkillVee