Subarrays with distinct elements. Wrong answer

Only one test case is getting passed. Here is the code

your code is correct
may be there is error in input and output format
send me the question link

https://online.codingblocks.com/player/26121/content/10192/5173