Source: Tuning Trouble
Part 1
Given input as a list of characters, find the index of the first sliding window (size 4) where all of the characters are distinct.
Given input as a list of characters, find the index of the first sliding window (size 4) where all of the characters are distinct.