C++ Soln || 100% faster || brute force Approach || Soln With full Explanation
\tint energySum = accumulate(energy.begin(),energy.end(),0);\n       int playerEnergyGain = 0;\n       int playerExperienceGain = 0;\n        \n        \n      
\tint energySum = accumulate(energy.begin(),energy.end(),0);\n       int playerEnergyGain = 0;\n       int playerExperienceGain = 0;\n        \n        \n        if(energySum >= initialEnergy)\n             playerEnergyGain = energySum - initialEnergy + 1;\n       \n        for(int i = 0; i < experience.size();i++){\n            if(initialExperience <= experience[i]){\n                int temp = initialExperience;\n                initialExperience = (initialExperience*(experience[i]/initialExperience)) + (experience[i] % initialExperience) + 1;\n                playerExperienceGain += initialExperience - temp;\n                 }\n            if(initialExperience > experience[i])\n                initialExperience += experience[i];\n        }\n        \n            return playerEnergyGain + playerExperienceGain;    \n        }
['C']