C
\n\n\nint distanceBetweenBusStops(int* distance, int distanceSize, int start, int destination){\n    int total = 0;\n    int gap = 0;\n    int min = fmin(start,
```\n\n\nint distanceBetweenBusStops(int* distance, int distanceSize, int start, int destination){\n    int total = 0;\n    int gap = 0;\n    int min = fmin(start, destination);\n    int max = fmax(start, destination);\n    for(int i = 0; i < distanceSize; i++){\n        total += distance[i] ;\n        if(i >= min && i < max)\n            gap += distance[i];\n    }\n    return fmin(gap, total - gap);\n}\n```
[]