let frequents = "1[3333ddflsd111kfl1111sdkfls1111dfZ"
var D = [Character: Int]()
for elem in frequents
{
if D.keys.contains(elem){
D[elem] = D[elem]!+1;
}
else
{
D[elem] = 1
}
}
var max = D.first
for elem in D{
if elem.value > max!.value
{
max = elem
}
}
print(max!)