Tech Mahindra interview question

Java basic quotient, design patterns etc.