Mistral AI interview question

setState is sync or async