Algonomy interview question

Mostly java coding side problem.