what the bad
Write $A=10X+Y$, where $Y$ is the units digit, and $X$ has $d$ digits. Then:
$A = 10X+Y$
$B = 10^dY+X$
$C=10^{2d}Y^2+10^d2XY+X^2$
$A^2=10^2X^2+10\cdot 2XY+Y^2$
To solve the problem, it is first necessary to narrow the possibilities for $Y$ with bounding.
$Y=0$: Doesn't work. Then $D$ has units digit $0$, so that $C$ has first digit $0$, impossible.
$Y=1$: Works. Then $D$ has units digit $1$, so that $C$ has first digit $1$. Since $B$ has first digit $1$, this is potentially achieveable.
$Y=2$. Works. Then $D$ has units digit $4$, so that $C$ has first digit $4$. Since $B$ has first digit $2$, this is potentially achieveable.
$Y=3$. Works. Then $D$ has units digit $9$, so that $C$ has first digit $9$. Since $B$ has first digit $3$, this is potentially achieveable.
$Y=4$. Doesn't work. $D$ has units digit $6$, so $C$ has first digit $6$. But $B$ has first digit $4$, which would imply that the first digit of $C$ is either $1$ or $2$, a fail.
$Y=5$. Doesn't work. $D$ has units digit $5$, so $C$ has first digit $5$. But $B$ has first digit $5$, which would imply that the first digit of $C$ is either $2$ or $3$, a fail.
$Y=6$. Doesn't work. $D$ has units digit $6$, so $C$ has first digit $6$. But $B$ has first digit $6$, which would imply that the first digit of $C$ is either $3$ or $4$, a fail.
$Y=7$. Doesn't work. $D$ has units digit $9$, so $C$ has first digit $9$. But $B$ has first digit $7$, which would imply that the first digit of $C$ is either $4$, $5$, or $6$, a fail.
$Y=8$. Doesn't work. $D$ has units digit $4$, so $C$ has first digit $4$. But $B$ has first digit $8$, which would imply that the first digit of $C$ is either $6$, $7$, or $8$, a fail.
$Y=9$. Doesn't work. $D$ has units digit $1$, so $C$ has first digit $1$. But $B$ has first digit $9$, which would imply that the first digit of $C$ is either $8$ or $9$, a fail.
With this check, we can prove that the $10^{2d}Y^2$ term in the sum creating $C$ is precisely the largest digit. Notice that
\[10^d\le A,B<10^{d+1}\implies 10^{2d}\le C<10^{2d+2}.\]And yet, for $Y=1$ and $Y=2$, we find $B<3\cdot 10^d$, hence $C<10^{2d+1}$, so that the $10^{2d}Y^2$ represents the first digit of $C$. With $Y=3$, the condition remains that $C$ has first digit $9$, so that $10^{2d}Y^2$ represents the first digit of $C$; if $C$ was at least $10^{2d+1}$ here, it would only have first digit $1$.
Hence $D$ is precisely equal to:
\[C=10^{2d}Y^2+10^d2XY+X^2\implies D=Y^2+10(10^d2XY+X^2)\]so that
\[Y^2+10(10^d2XY+X^2)=D=A^2=10^2X^2+10\cdot 2XY+Y^2\]\[10(10^d2XY+X^2)=10^2X^2+10\cdot 2XY\]\[10^d2XY+X^2=10X^2+2XY\]\[10^d2Y+X=10X+2Y\]\[2Y(10^d-1)=9X.\]
Hence we have three infinite sets of solutions:
\[A=\underbrace{2\dots2}_{n \ge 0}1,\qquad A=\underbrace{4\dots4}_{n \ge 0}2,\qquad A=\underbrace{6\dots6}_{n \ge 0}3.\]For the last two cases, we may check that for $n\ge 1$ the "first digit" condition of $C$ (that the first digit is $4$ and $9$, respectively) fails. Hence only $A=2$ and $A=3$ work in these cases. In the first case, the first digit condition of $C$ holds, and the number of digits of $C$ "matches up," so the solution set is valid. The final answer is:
\[A=\underbrace{2\dots2}_{n \ge 0}1,\qquad A=2,\qquad A=3.\]We are done. $\blacksquare$