Stack Push Algorithm