Will someone build me a sorting and sorting research program in c language

Job ID: 34750136

Budget: ₹600 – ₹1,500 INR

sorting program should work like this:
Input:
10
2 4 6 7 2 4 5 6 3 6
4

Output:
14
Note! i want array should without any size or should be empty

sorting(research)
1. N = 10
2. N = 1000
3. N = 10000
Note! i want array should without any size or should be empty & make separate function for calculation so i can understand