Fill in the grid so that every ring and every green segment with its both yellow neighbors contains the digits 0 through 9 and the letters A and B. There is only one solution. You can find it by logic.