If it were up to me, I would deem it legal but watch the hands very closely. He had gripped his hands together and they were both off the ground though when he was hitting him. Feet were the only part of the guy that was touching the mat. I think the ref made a mistake, but its understandable at the same time because that is so uncommon. Not sure you could do that from almost any other position.