Incedo Interview Question

Java features and coding based on that