Pregunta de entrevista de Amazon

Balance binary tree, how hashmap works in java