Amazon Interview Question

HackerRank assessment included a variation of Leetcode's Shortest Path to Get Food problem