Total Appeal of A String
Given a string 's', calculate and print the total appeal of all its substrings, where the appeal of a substring is defined as the number of distinct characters it contains.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)