This class is used to calculate the barcode of type Universal Product Code barcode
Validate the given input to check whether the input is valid one or not
Returns string