ESI Group Interview Question

How would you solve OCR using C++?