HENNGE interview question

Code challenge