JavaScript Simple Solution
javascript\n/**\n * @param {number[]} distance\n * @param {number} start\n * @param {number} destination\n * @return {number}\n */\nvar distanceBetweenBusStops 
```javascript\n/**\n * @param {number[]} distance\n * @param {number} start\n * @param {number} destination\n * @return {number}\n */\nvar distanceBetweenBusStops = function(distance, start, destination) {\n  if (start > destination) [start, destination] = [destination, start];\n  const total = distance.reduce((acc, cur) => acc + cur);\n  const route = distance.slice(start, destination).reduce((acc, cur) => acc + cur);\n  return Math.min(route, total - route);\n};\n```\n\n* 37/37 cases passed (48 ms)\n* Your runtime beats 96 % of javascript submissions\n* Your memory usage beats 100 % of javascript submissions (33.7 MB)
['JavaScript']