add ruby solution for reverse string