TripFactory Interview Question

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