I thought the rule was if you step over the boundary before first contact with the ball the it’s a 6. As he caught the ball inside the rope, released it before touching the ground over the rope, then left the ground, re-releasing the ball before touching down, then caught it inside the rope, it should ge out.
UNLESS the rule is from when you catch a ball full stop (not whether you catch from first hit, I,e. He was outside the boundary when he left the ground the second time, therefore deeming it a 6)
So, in a few less words, ****ed if I know fir certain