find largest subarray with all distinct numbers