Akinox Interview Question

React component to fix. Code already present