Pergunta de entrevista da empresa ThoughtFocus

Logical question on customising set and map in java.