Amazon interview question

Basic table using Vanilla JS