I\'m solving the first problem on leet code, week 1, problem 1 (which you can find in the attached link):
Given a non-empty array of integers nums, every