Double Sided Arrow

I’d done this question, Can you please check my approach whether it is right or wrong.
After doing question i’d see the editorial , but i’m not able to understand from the editorial.
So, please check my approach.

@CODER_JATIN its giving correct for my cases so i thinks its correct
(there can be multiple approaches for pattern problem)
dont forget to hit like and mark resolved if cleared :smiley:

ok ji, thanks. . . …