← Barclays questions
CodingReported in a candidate post, Feb 2019

Count Occurrences of a Character in a String

Filed under Barclays · Also reported at Caterpillar

Write a function or program to count the total occurrences of a specific character in a given string.

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 Barclays questions

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