Difficulty Level: MEDIUM
Problem Statement:
You are given an array that is already sorted. You need to eliminate the duplicate elements in the given array in such a way that you’ll get the unique array.
Input:
arr [] = {4,4,8,8,9}
Output:
arr3[] = {4,8,9}