ABCDEFG interview question

basic Java and oops concepts, design patterns, and also sorting.