Solution to DigitsABCABC https://brilliant.org/mathematics-problem/the-digits-abcabd/?group=xgTxOcOJPlBg