Minimum Prefix Length to Form a Permutation · 2daysbeforeinterview