Narvar interview question

gas station problem leetcode