Answer to Question 23A-1

It does not work. All values in array A might be negative. Initializing L = 0 forces the algorithm to return 0, which is not correct.