C++ SOLUTION
\nclass Solution\n{\npublic:\n    int distanceBetweenBusStops(vector<int> &distance, int start, int destination)\n    {\n        int n = distance.size();\n     
```\nclass Solution\n{\npublic:\n    int distanceBetweenBusStops(vector<int> &distance, int start, int destination)\n    {\n        int n = distance.size();\n        if (start > destination) swap(start, destination);\n        int dist1 = 0;\n        for (int i = start; i < destination; ++i)\n        {\n            dist1 += distance[i];\n        }\n        int dist2 = 0;\n        int i = destination;\n        while (i != start)\n        {\n            dist2 += distance[i];\n            i = (i + 1) % n;\n        }\n        return min(dist1, dist2);\n    }\n};\n```
['C', 'C++']