Plex Systems, Inc. interview question

Pretty straight forward coding question.