TikTok Interview Question

Find the shortest path between two points