John Deere interview question

React Hooks and JS Promises