The program returns both a count of the times the string appears in the file and the average number of words between each instance of the search string.
Run the program using this sample input file of "War and Peace" in text version using the search string: peace.
Provide additional output of the most common three word phrase in the text.
go to the src directory ( cd src
)
type: g++ -o exe *cpp
type: ./exe ../inputs/war.txt