Learn and Build interview question

How do we manage states between components