Achievers interview question

Update an object based on another object entrance