Pergunta de entrevista da empresa Jamcracker

Simple ones, How will you read a file, process the file and separate words & their counts.