SUBARRAYS WITH DISTINCT ELEMENTS Problem

please, give me 1-2 more test case so that i can how can i approach toward the problem. i want to know about the explanation about the output too

take example
1 2 1 1
subarray are
1
1 2
1 2 1
1 2 1 1
2
2 1
2 1 1
1
1 1
1
now u have to find that subarray having distinct element no repetition of value in a subarray

thanks…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.