Accenture Interview Question

Coding question based of object React life cycle methods