Amazon Interview Question

Create a counter button using react