Python Are Equally Strong
def are_equally_strong(
    your_left: int, your_right: int, friends_left: int, friends_right: int
) -> bool:
    return max(your_right, your_left) == max(friends_left, friends_right) and min(
        your_left, your_right
    ) == min(friends_right, friends_left)

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