Java String Reverse using StringBuffer Example