Find the longest subarray with distinct integers
<p>Write a method that takes an array of integers and returns the length of its longest subarray with distinct integers. </p>

<p>e.g. with <code>[1,2,3,4,2,3]</code> it should return <code>4</code>.</p>