Advertise.com interview question

Asked to do a trivial coding example on the board.