EagleView interview question

Coding Question 1 was a 3D DP question.