PayPal interview question

add one to an integer array