Write a function addOne that adds 1 to its integer reference parameter. The function returns nothing.