HENNGE Interview Question

code challenge for implementing dynamic table