JAVA Solution
\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n       \tint total = 0;\n\t\tfor (int x : distance) {\
```\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n       \tint total = 0;\n\t\tfor (int x : distance) {\n\t\t\ttotal = x + total;\n\t\t}\n\n\t\tint dis = 0;\n\t\tif(start<destination)\n\t\tfor (int i = start; i < destination; i++) {\n\t\t\tdis = dis + distance[i];\n\t\t}\n\t\telse {\n\t\t\n\t\t\tfor (int i = destination; i < start; i++) {\n\t\t\t\tdis = dis + distance[i];\n\t\t\t}\n\t\t}\n\n\t\tint ad = total - dis;\n\n\t\tif(ad<0)\n\t\t{\n\t\t\tad=ad*-1;\n\t\t}\n\t\treturn Math.min(dis, ad);\n\n    }\n}\n```
['Java']