barcode checksum
implement in imperative way.
implement in sql way