Completed StringManipulationSetTwo First half.