LogicMonitor interview question

Java, OOPS, DS, Coding, Puzzle, Spring, Hibernate