Inaccess interview question

Build a REST API using Java.