思路:
双指针解决 map key 存值 ,value 存索引位置 如果map 中key重复,就将start 索引置为重复得下标加1 end 每次都++,注意初始需置为-1
(一) 代码
算法是必须要过的坎