Amazon interview question

reviewing some code and design a data table