It can be done without the temporary array, but it takes some thought. Some questions that can help you figure out how are: how far apart s1 and s2 are, which has the higher memory address, and how big n is.