public boolean canFinish(int[] gas,int[] cost, int start){
        int length = gas.length;
        int tank =0;
        for(int i =0 ;i< length;i++){
            tank = tank + gas[i%length] -cost[i%length];
            if(tank < 0)
                return false;
        }
        return true;

    }