Javascript Array Shift Time Complexity In Python How To Comment