Java Solution
```java\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        int total =0;\n        int sum1=0;\n   
```java\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        int total =0;\n        int sum1=0;\n        for(int x: distance)\n        total+=x;\n        \n        if(start<destination)\n        {\n        for(int i=start;i<destination;i++)\n            sum1 = sum1 + distance[i];\n        }\n        else if(start==destination)\n            return 0;\n        else if(start>destination)\n        {\n            for(int i=start-1;i>=destination;i--)\n            sum1 = sum1 + distance[i];\n        }\n        int sum2 = total-sum1;\n        \n        return Math.min(sum1,sum2);\n        \n    }\n}
[]