Solved solution What_is_the_string_made_of_2 in both C++11 and Ruby