Mentoring is an art and science simultaneously. There is no fixed way to be a mentor, but if you think you are a good listener, have analytical capabilities, and can make yourself available for the person in need, then usually you will naturally become a mentor to someone unintentionally.