DroneDeploy interview question

Q: JavaScript object manipulation and state management problem