Linked Stack Time Complexity