add ruby solution to q029