Morgan Stanley interview question

Java hashmaps and SQL joins