Mastech Digital interview question

write a program to read a file and count maximum occurring word.