Subarray with distinct element

https://ide.codingblocks.com/s/250048 this is my code test cases are not getting passed

it is done mark it as resolved thanks… i forgot to use modulo.

@Vivek-Pandey-2129725577345937 ok just mark it resolved