Generate parantheses doubt

sir i am unable to find a valid approach for this question pls help

@Tanna hey tanna here is the link of the video by prateek bhaiya Video.