Trimble interview question

Very complex program