BOP Consulting interview question

React class components and Lifecyle methods