Toppr.com Interview Question

asked to demonstrate a simple html and javascript code