Pergunta de entrevista da empresa Oracle

asked to build a react component with proper state management