Applied Intuition Interview Question

Round 1: Cost map question involving graph traversal.