Expedia Group Interview Question

Questions on how sets worked and also one in Java