Subarrays with distinct elemnt

i am solved this question on vs code and got currect answer but when i am submiting none of the test is geeting passed .

hi @discobot please share the code

Hi! To find out what I can do, say @discobot display help.

go to ide.codingblocks.com
write
save
send the url of page

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.