arr = [c,c,b,d,d,a,a,c,b,b,b,c,d,a]
Given an array of characters, find the min length sub array within this array which has all the unique elements present in the array.
unique = [c,b,d,a]
worst = [c,a,a,a,a,d,d,d,b] //in this case the complete array becomes the min lenght sub array..
Write a function which accepts the char array and prints i,j of the sub array