Ageras Group interview question

A take home assignment for a project