Consecutive Numbers Leetcode Solution In C