Easy to understand code in cpp
\n    int distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n        int sum=0,sum1=0;\n        for(int i=0;i<distance.size();i++)\n 
```\n    int distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n        int sum=0,sum1=0;\n        for(int i=0;i<distance.size();i++)\n        {\n            if((i>=start&&i<destination)||(i<start&&i>=destination))\n            sum+=distance[i];\n            sum1+=distance[i];\n        }\n        return (min(sum,sum1-sum));   \n        \n    }\n```\nSelf explanatory.If you have any doubts ask me.\n\n
['C', 'C++']