Before implementing getLastN function of custom Queue