added solutions to friends.rb
added solutions to friends.rb