Javascript Array Shift Time Complexity In Python What We Use For Next Line