Question: Write an strrev routine.( inplace code)

Solution: Calculate the size of string. Use two pointers, one at start and the other at end, keep exchange till you reach middle position. Take care of odd and even lengths.