Problem

Count how many times ch appears in s.

Examples

  • strCountChar("banana", "a") -> 3
Compile and test (Ctrl+Enter)