add ruby solution to q021