HENNGE interview question

The code test was semi-complex data structure transformation task.