Solved Ruby Code For The Following Code 1 Write The Rub

Solved Ruby Code For The Following Code 1 Write The Rub