C# Easy solution without using built-in functions(Easy-Understanding)
\npublic class Solution {\n    public int LargestAltitude(int[] gain) {\n       int highestAltitude = 0, temp = 0;\n\n            for (int i = 0; i < gain.Lengt
```\npublic class Solution {\n    public int LargestAltitude(int[] gain) {\n       int highestAltitude = 0, temp = 0;\n\n            for (int i = 0; i < gain.Length; i++)\n            {\n                temp += gain[i];\n                if (temp > highestAltitude)\n                    highestAltitude = temp;\n            }\n            return highestAltitude; \n    }\n}\n```
['C', 'C#']