[JavaScript] Easy to understand - 40ms
Calculate the total distance and the clockwise distance\n- Get the min one in clockwise distance and counterclockwise distance\n\njs\nconst distanceBetweenBusSt
- Calculate the total distance and the clockwise distance\n- Get the min one in clockwise distance and counterclockwise distance\n\n```js\nconst distanceBetweenBusStops = (distance, start, destination) => {\n  let clockwise = total = 0;\n  if (start > destination) [start, destination] = [destination, start];\n  for (let i = 0; i < distance.length; ++i) {\n    total += distance[i];\n    if (i >= start && i < destination) clockwise += distance[i];\n  }\n  return Math.min(clockwise, total - clockwise);\n};\n```
['JavaScript']