Topic: Array Problem / Level: intermediate

Problem: Given an array, find the smallest subarray that contains all the distinct elements of the array.

Run the code to see the output here...