Yahoo interview question

Write a function which copies a subarray in an array to another position without a temporary variable.