The beginning and the end of a range of indices in A can be used as arguments to your recursive method.