last but one using foldLeft and queue