Print All Paths Leetcode Javascript Solution