We all face rejection at some point in life. Here’s how to cope with it and learn from it.