Tieto Interview Question

example: Lifecycle of react component