PTC interview question

How can you help us solve the various problems within the function?