Amazon Interview Question

reviewing some code and design a data table