Shopee interview question

Find all paths from a node