update problem description
call chars method on str
use += instead of ++ (ruby has no ++ operator)