Elixir Are Equally Strong
defmodule AreEquallyStrong do
def are_equally_strong(your_left, your_right, friends_left, friends_right) do
max(your_right, your_left) == max(friends_left, friends_right) and
min(your_left, your_right) == min(friends_right, friends_left)
end
end
This compares each person’s strongest and weakest arm. If both pairs match, the result is true.