add ruby solution to q019