solve Anagram Detection in Ruby and Scala

Solution to [Anagram Detection](https://github.com/blakeembrey/code-problems/tree/master/problems/anagram-detection) in ruby and scala.

Here is how I write the code:

For each string of two which have equal length, compute the times that a char appears, reducing to a hash,

then compare the two hash to judge whether the two strings are anagrams.

Iterate the parent string to get the final answer.