Amazon Interview Question

given an array find the subarray with maximum sum of size k without any repetitive characters