Java - Easy Solution || Understanable 100%
\nclass Solution {\n    public int largestAltitude(int[] gain) {\n         int sum = 0;\n        int maxNum = 0;\n\n        for(int i = 0; i<gain.length; i++){\
```\nclass Solution {\n    public int largestAltitude(int[] gain) {\n         int sum = 0;\n        int maxNum = 0;\n\n        for(int i = 0; i<gain.length; i++){\n            sum+= gain[i];\n            if (sum>maxNum)\n                maxNum = sum;\n            \n        }\n        \n        return maxNum;\n        \n    }\n}\n```
['Java']