Imagine Learning interview question

Did not get this far