A top Netflix executive has left the company after he used the N-word in front of colleagues on more than one occasion.