Q1Single correct3 Marks10 May 2026
Consider the following Python function.
```
def f(s):
D = {}
for ch in s:
D[ch] = D.get(ch, 0) + 1
best = None
count = -1
for k in sorted(D):
if D[k] > count:
count = D[k]
best = k
return best
print(f(s))
```
Which of the following inputs s will produce the output 'b'?