This quote means that your character is determined by how you deal with hard moments in your life. Everyone experiences both success and failure, but it is how you handle both that is important. It suggests that by handling difficult situations with strength and resilience, you can show what kind of person you are.