Pergunta de entrevista da empresa Amazon

Q: Find the smallest subarray in which there are no repeated numbers.