Minimum Cost Walk in Weighted Graph | Leetcode 3108