GalaxEye Space Interview Question

Asked me a question on dynamic programming