Time O(n), each character will be processed once, and at most pop out once
Space O(n), the given string may contain all unique characters
1st attempt (Go)
2nd attempt (Java) (28mins) ❤️
3rd attempt (java) (sliding window rusty)
4th attempt (java)❤️❤️