maxIT interview question

Pretty straight forward