Feedloop interview question

How do you store a state in an app