Walmart Interview Question

How to manage state in an angular application?