Edited README.md and solved problem 22 in Ruby