Hi Ravi,
fn!updatearray does not actually mutate the array that is passed to it. Insted, it returns what the value of the array would be after the update. In general, local variables can only be modified inside of saveInto's.
There are a few options…