Given a log file, find the top N most talkative users Parse each line, extract username and message, count words, aggregate per user in a map, sort by total word count (desc), return top N. Given a chat log, count how many words each user has spoken and return the top N most talkative users….