public static void Swap(IStackList <object> stack) { if (stack.Count > 1) { var obj = stack.Pop(); stack.Insert(1, obj); } }