String Reversal using iterator approach

String Reversal using iterator approach