[cpp] simple 6 liner code
\nclass Solution {\npublic:\n    int getMaximumConsecutive(vector<int>& coins) {\n        sort(coins.begin(), coins.end());\n        int min = 0;\n        for(i
```\nclass Solution {\npublic:\n    int getMaximumConsecutive(vector<int>& coins) {\n        sort(coins.begin(), coins.end());\n        int min = 0;\n        for(int i: coins){\n            if(i <= min+1) min = i+min;\n            else break;\n        }\n        \n        return min+1;\n    }\n};\n```
[]