Dexory interview question

How to make a C++ barcode scanning implementation, checksums etc.