Java Simple and Short
\n    public int getMaximumConsecutive(int[] coins) {\n        Arrays.sort(coins);\n        int max = 1;\n        for(Integer i: coins){\n            if(i > max
```\n    public int getMaximumConsecutive(int[] coins) {\n        Arrays.sort(coins);\n        int max = 1;\n        for(Integer i: coins){\n            if(i > max)\n                return max;\n            max += i;\n        }\n        return max;\n    }\n```
[]