Walmart interview question

statefull and stateless components in React