Playlist CSES Problem Set Solution-
What is the longest sequence of successive songs where each song is unique?
The first input line contains an integer : the number of songs.
The next line has integers : the id number of each song.
Print the length of the longest sequence of unique songs.
1 2 1 3 2 7 4 2