This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assignment 01 | |
import UIKit | |
//MARK: - Question1 | |
/* | |
Write a function that takes a String as parameter and returns nothing. The function calculates and prints the frequency of each character in the given string, that means, how many times each character came up in the given string. | |
Example input: | |
let string = "Hello" | |
Example Output: |