C++ | Fast | Easy to understand
\nclass Solution {\npublic:\n    int distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n        int s1 = accumulate(distance.begin(),
```\nclass Solution {\npublic:\n    int distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n        int s1 = accumulate(distance.begin(), distance.end(),0);\n        int s2=0, s, p = start,q = destination;\n        if(p>q){\n            for(int i= q; i< p; ++i){\n                s2 += distance[i];\n            }\n        }\n        else if(p==q) return 0;\n        else{\n            for(int i= p; i< q; ++i){\n                s2 += distance[i];\n            }\n        }\n        s = min(s1-s2,s2);\n        return s;\n    }\n};\n```
['C']