Thank you to all the members.
I got the answer from my other community.

@Prince
It is the similar solution as you gave.