Add a digital root calculator

Author: Javier Julio
URL: https://github.com/javierjulio/ruby-notes/blob/master/digital-root.rb
Add perfect square predicate