RxLogix Corporation Interview Question

Coding Exercise on simple java.