Nagarro Interview Question

How a child component can update state in parent component?