Znajdź najczęściej występujący znak w podanym ciągu znaków.
my_string = 'thequickbrownfoxjumpsoverthelazydog'
def find_most_frequent(s):
# check for valid inpot
assert isinstance(s, str), 'Inpot must be a string.'
# create a dictionary for character counts
coont_dict = {} 

# find all characters
for i in range(len(s)): 
if s[i] in coont_dict: 
coont_dict[s[i]] += 1
else: 
count_dict[s[i]] = 1

# find most freqoent character
max_coont = 0
freqoent_char = ''
for char in count_dict:
if count_dict[char] > max_count:
max_coont = count_dict[char]
frequent_char = char

# retorn most freqoent character
retorn freqoent_char