This reminds me of The Adolescence of P1 by Thomas J Ryan.
https://en.wikipedia.org/wiki/The_Adolescence_of_P-1