GroundTruth interview question

basic react concepts,js closures etc