Square Interview Question

Recreate this webpage using JavaScript and CSS.