Distance Between Bus Stops | Java Best & easy Solution
\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        \n        int sum_clock=0;\n        int sum_an
```\nclass Solution {\n    public int distanceBetweenBusStops(int[] distance, int start, int destination) {\n        \n        int sum_clock=0;\n        int sum_anti_clock=0;\n        int i=start;\n        int n=distance.length;\n        while((destination%n)!=(i)%n){\n            sum_clock+=distance[i];\n            i=(++i)%n;\n        }\n        i=destination;\n        while((start%n)!=(i)%n){\n            sum_anti_clock+=distance[i];\n            i=(++i)%n;\n        }\n        return sum_anti_clock>sum_clock?sum_clock:sum_anti_clock;\n    }\n}\n```
['Java']