ESI Group interview question

How would you solve OCR using C++?