Citi interview question

Java Tehnical programs and Design Patterns