LogicMonitor Interview Question

Basic java quetions 1 Coding Problem