Microsoft interview question

- implement a function that reverts a string in local

Interview Answer

Anonymous

17 Oct 2011

use a swapping operation and swap the first floor(n/2) elements with the last floor(n/2) elements.