Question
Given a string write a program to print all the characters with their corresponding count.
Example
Input
[“HELLO”]
Output
{"H":1,"E":1,"L":2,"O":1}
Solve the program on
https://www.onlinegdb.com/online_java_compiler