Bacancy interview question

how we can share the data b/w components ?