The number is solid if the following condition holds: if the digits are on i and j position, where j > i, equal c, then the digit at k position also equals c, for every