Longest subarray with distinct elements

easy
Longest subarray with distinct elements - Coding Problem | K5kC