Medidata Solutions Interview Question

Create a working example of javascript input box and message once submitted.