Applied Intuition Interview Question

We did the Gas station problem