On the Yang-Baxter equation and left nilpotent left braces