HENNGE interview question

code challenge for implementing dynamic table