PHP Are Equally Strong
function areEquallyStrong($yourLeft, $yourRight, $friendsLeft, $friendsRight)
{
    return max($yourRight, $yourLeft) === max($friendsLeft, $friendsRight)
           && min($yourLeft, $yourRight) === min($friendsRight, $friendsLeft);

}

This compares each person’s strongest and weakest arm. If both pairs match, the result is true.