OpenText Interview Question

They asked to write a code to find the character count in a given string