Prepay Solutions interview question

Java online test