Number Following A Pattern Leetcode Playground C