HackerEarth Interview Question

Life cycle methods of react