Fidelity Investments interview question

React refactoring, java api data manipulation