We can actually deduce here that the author's purpose for writing this text is: To share something he has learned about life.
<h3>What is author's purpose?</h3>
Author's purpose refers to the reason behind an author's writing. It reveals what an author wants to achieve from he/she has written.
We see from the passage above that the author's purpose for the writing the passage is to share something he has learned about life. We see that it's story about rejection which many people face in life including myself.