Pass by reference vs value exercise