Barclays interview question

Java Lock, Synchronization. Java HashMap