Pregunta de entrevista de Goldman Sachs

How tha hashmap and hash set works internally and which one would be faster. along with Tree set internal implementation.