build me a code in JAVA

Job ID: 33714140

Budget: ₹600 – ₹1,500 INR

Very small task:


Requirements:

Please complete the following take-home coding challenge.
Allow about 4 hours max for it. Don't worry if there are a few rough edges,
but try to solve the main requirements.

You may use Python, JavaScript, Java or Go. You may use the standard library for your chosen language
freely, but not other third-party libraries. In your test code you may use common third-party
test packages (e.g. pytest, junit, testify).

Please produce production-quality code, providing tests and comments where necessary.
Provide all source code, ideally in a zip file / tarball so that it can be checked out and built.
Please do not share or upload the code anywhere else (e.g. Github).

Provide a brief README file with instructions on how to build/run your program (and tests), a
sample of your programs output and describe any assumptions made.