JPMorganChase interview question

Design patterns and Java basics