An Exercise Answer of Professional C++ 20

Part of the official answer is referenced