PHP interview assignment