Split Array With Same Average Leetcode Solutions In C