divya Interview Question

Basic intermediate question of react js