In this exercise I solved an easy problem: to find the most repeated character in a string. All the efforts were on finding a way to solve this problem is the most optimal way possible.
The problem was solved on a o(n) time complexity.
Algorithm to find the most repeated character in a string in swift.
Swift