NIH interview question

Design an applet using javascript