Metro Markets Interview Question

Find specific characters in the given string