This question was a little vague. He was not sure which country and era the president was referring to. However, if he was referring to a certain president of the United States, then his experience as a president and writing a book could be referred to the following information: In the history of the United States, many presidents were imprisoned in prison, and some of them later became successful political leaders. For example, George Washington was arrested in 1789 and sentenced to 13 years in prison, but he was elected president of the United States in 1792 and returned to public life at the beginning of his term in 1801. If it was referring to a book written by a president after his term of office ended, the specific title might vary according to the president. For example, in his Memoir, My Story, Bill Clinton recounted his experiences in the Soviet Union and sex scandals. In his autobiography, My Father's History, George W. George W If you're referring to a specific president, please provide more information. I'll try my best to provide you with a more accurate answer.