UBS interview question

one coding dsa question was similar to leetcode subarray with k max something like that but the numbers in subarray should not repeat