add solution to teenager.rb
add solution to teenager.rb