This method reverses the provided integer array `a` in-place.
