Linked Stack Time Complexity In Algorithms