6. Consider the symbols and frequencies: e 20 t 14 a 10 o:5 i:4n 2 s 1 (a) Find a Huffman code for this situation, and the average length of an encoded symbol. (b) Reassign the code words to the letters randomly.
<p>In Java program this method</p><p><img alt="(10) Create a function public static int findRepeat (int A) which takes as input an int array A with length n where the elements of
A new class is defined as follows:<br/>public class TimeSpan {private int hours; //can be any non-negative numbersprivate int minutes; //must be in the range [0, 60)<br/>public TimeSpan(int hours, int minutes)