Sigma Solve Interview Question

Basic concept of react and javascript.