java
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        int bus1 = 0;\n        int bus2 = 0;\n        int k = destination;\n        for(int i = 0; i < distance.length; i++){\n            if(start <= i && i < destination || start > i && i >= destination){\n                bus1 += distance[i];\n            }else{\n                bus2 += distance[i];\n            }\n        }\n        if(bus1 > bus2) return bus2;\n        return bus1;\n    }\n}\n```
['Java']