Set a value at an arbitrary nested path, creating intermediate objects or arrays as needed.
Asked in frontend interviews at Google, Amazon and ByteDance