javascript simple solution!
\n/**\n * @param {number[]} distance\n * @param {number} start\n * @param {number} destination\n * @return {number}\n */\nconst distanceBetweenBusStops = functi
```\n/**\n * @param {number[]} distance\n * @param {number} start\n * @param {number} destination\n * @return {number}\n */\nconst distanceBetweenBusStops = function(distance, start, destination) {\n\tif (start > destination) {\n  \tlet temp = destination;\n    destination = start;\n    start = temp;\n  }\n  \n\tconst front = distance.slice(start, destination).reduce((acc, curr) => acc + curr, 0);\n  const back = [...distance.slice(destination), ...distance.slice(0, start)].reduce((acc, curr) => acc + curr, 0);\n\t\n  return Math.min.call(null, front, back);\n};\n\n```
['JavaScript']