I’m guessing the line that goes here is:
push!(d[count], str[i])
and rather than d[count] = str[1], you wanted d[count] = [str[i]]
I’m guessing the line that goes here is:
push!(d[count], str[i])
and rather than d[count] = str[1], you wanted d[count] = [str[i]]