Implement a simple arithmetic operation for adding one to a number represented by an array.