C++ one pass
\nint distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n  int sum1 = 0, sum2 = 0;\n  if (start > destination) \n      swap(start, de
```\nint distanceBetweenBusStops(vector<int>& distance, int start, int destination) {\n  int sum1 = 0, sum2 = 0;\n  if (start > destination) \n      swap(start, destination);\n  for (auto i = 0; i < distance.size(); ++i) {\n    if (i >= start && i < destination) \n        sum1 += distance[i];\n    else \n        sum2 += distance[i];\n  }\n  return min(sum1, sum2);\n}\n```
[]