2. (15 分) Given a file, we found that it consists of seven symbols a,b,c,d,e,f,g and their frequencies are as follows.
Use Huffman coding to encode these 7 symbols to achieve the minimum file size.