Manhattan Associates Interview Question

about java