add ruby solution to q014