What the retail giant’s CISO learned about developing talent, even when that means watching them leave.