Landis+Gyr interview question

1. Accumulate values from an array. 2. Copy a string.