Cognex Interview Question

Hash algorithm to search number of alphabets in a string. prepare const pointer throughly