Microsoft Interview Question

Design an algorithm for a least fuel in car scenario