List to Set

Geoffrey Challen // 2021.9.0

Given a nullable List of Strings, write a method toSet that converts it to a Set of Strings that contains all the same Strings in the original list. So given a List containing "test", "me", and "test", you would return a Set containing "test" and "me". require that the passed List is not null.