a) Implement a function that examines an array and returns 0 or 1, where 0 indicates the array is unsorted and 1 indicates the array is sorted.
b) If array is unsorted, Implement a selection sort that removes duplicates during the sorting process.

please who has the function please post here the method