Toppr.com interview question

asked to demonstrate a simple html and javascript code