Leetcode Bubble Sort Problems In C