Basically this program is implementation of Luhn's Algorithm to validate credit card number, if it is valid or invalid. Also the same logic applies to IMEI(International Mobile Equipment Identity) number so it can detect if the IMEI number is valid or not