Mastercard interview question

State Management in React Application