Primathon Interview Question

create a incrementer in react