NIX Solutions interview question

A lot theoretical and one coding task in javascript