Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please don't post solutions in Discourse, use Solutions to discuss a solution and even there, mark your post as having spoiler content when it has a spoiler.
Please read this: https://docs.codewars.com/training/troubleshooting/
Your function isn't returning anything. There are several other problems too.
It will count how many times that character is repeated in that text. if you put set in a loop how its going to count the repeated character.
for example aditiyan
a=2
d=1
i=2
t=1
i=2
y=1
a=2
n=1