What a ball ache - Java
```\npublic List mostVisited(int n, int[] rounds) {\n        int[] count = new int[n+1];\n        int max = 0;\n        \n        // increment the starting poin
```\npublic List<Integer> mostVisited(int n, int[] rounds) {\n        int[] count = new int[n+1];\n        int max = 0;\n        \n        // increment the starting point\n        count[rounds[0]]++;\n        \n        for(int i=1; i<rounds.length; i++)\n        {\n            int start = (rounds[i-1] % n) + 1;\n            int end = rounds[i];\n            \n            while(start != (end%n) + 1)\n            {\n                count[start]++;\n                max = Math.max(max, count[start]);\n                start = (start % n) + 1;\n            }\n        }\n        \n        List<Integer> ans = new ArrayList<>();\n        for(int i=0; i<count.length; i++)\n        {\n            if(count[i] == max) ans.add(i);\n        }\n        \n        return ans;\n    }
[]