Uber Interview Question

Something similar to the leetcode question, Minimum Cost Path with Teleportations