Problem:
Question 1- Write a C++ program that reads in a text file and write the histogram of word frequency sorted in le icographic order to an otp t file.
Question 2- Write a recursive C++ program to solve the famous Towers of Hanoi problem. In addition to showing the moves, also display the current status of three pegs as follows.
Initial pegs
A54321
B
C
Move disk 1 from peg A to peg B
A5432
B1
C
Please show code with comments so I can follow what you are doing.