← Capgemini questions

Count character and word occurrences

Filed under Capgemini

Write a function to count the occurrences of each character in a given string, and another function to count the frequency of a specific target word inside a list of strings.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Capgemini questions

Collected from public candidate posts and coding forums. Updated Nov 2026.