add ruby solution to q023