Parallon interview question

Example of a complicated assignment