JAVA || beats 100% ||  💯 || Simple ||
```\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        int frontSum=0;\n        int backSum=0;\n  
```\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        int frontSum=0;\n        int backSum=0;\n        for(int i=start;i!=destination;i=(i+1)%distance.length) frontSum+=distance[i];\n        for(int i=destination;i!=start;i=(i+1)%distance.length) backSum+=distance[i];\n        return Math.min(frontSum,backSum);\n    }\n}\nPlease upvote if you like the solution \uD83D\uDE4F
['Java']