Linked Stack Time Complexity In Programming