Quantiphi Interview Question

Asked to write component in react to handle forms