Binary Tree Paths

Given the root of a binary tree, return all root-to-leaf paths as a list of strings.

Examples
Input: [1,2,3,null,5]
Output: ["1->2->5","1->3"]
Hints

Binary Tree Paths

Given the root of a binary tree, return all root-to-leaf paths as a list of strings.