TripFactory interview question

write a program to find maximum subarray with unique characters in an array