Pregunta de entrevista de Amazon

reviewing some code and design a data table