Manhattan Associates interview question

Java qsns