Easy and clean C++ code
```\nclass Solution {\npublic:\n    int getMaximumConsecutive(vector& coins) {\n        sort(coins.begin() , coins.end());\n        \n        // initially we ha
```\nclass Solution {\npublic:\n    int getMaximumConsecutive(vector<int>& coins) {\n        sort(coins.begin() , coins.end());\n        \n        // initially we have zero as max and min values\n        int mn = 0 , mx = 0;\n        \n        for(auto x : coins){\n            int temp_mn = mn + x;\n            int temp_mx = mx + x;\n            \n            // here if temp_mn > mx + 1 then there wont be the continuity so check for this here\n            if(temp_mn <= mx + 1){\n                mx = max(mx , temp_mx);\n            }else\n                break;\n        }\n        \n        \n        return mx - mn + 1;\n    }\n};
[]