Js Reduce Return Array Of Strings Cpp