Easy C++ Solution 0ms Faster than 100%
\nclass Solution {\npublic:\n    int distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n        int distance1 = 0, distance2 = 0;\n  
```\nclass Solution {\npublic:\n    int distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n        int distance1 = 0, distance2 = 0;\n        if(start > destination){\n            int temp = start;\n            start = destination;\n            destination = temp;\n        }\n        for(int i = 0; i < distance.size(); i++){\n            if(i >= start && i < destination) distance1 += distance[i];\n            else distance2 += distance[i];\n        }\n        return distance1 < distance2 ? distance1 : distance2;\n    }\n};\n```
['C']