Most people think of success and failure as opposites but they both are products of the same process.