You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Loop from 0 to n and make sure every (i + 1)th number is at least 1 more than ith number. If it isn't, count the number to add to make it so and add it in result.