Palamida interview question

Very basic stuff.