Lloyds Banking Group interview question

Write useEffect cleanup function and object properties