Count distinct subarrays

Problem Name:
Count distinct subarrays
Site:HackerEarth
Links:
Tags: