Applied Intuition interview question

We did the Gas station problem