Created Ruby version of uniq_chars.cpp