HyperionDev interview question

Code challenge that is long