Task one: Open a UTF-8 text file; read through the file character by character; and count the occurrences of each character (a.k.a.: the weight). Store this information in a data structure... an array comes immediately to my mind. Print the data you have collected.For example, if the file contained only the line: "mary_had_a_little_lamb", then the data (character & weight) would be:_ 4a 4b 1d 1e 1h 1i 1l 3m 2r 1t 2y 1