A wristband can have 4 patterns:
You are shown an incomplete section of a wristband.
Write a function that returns True if the section can be correctly classified into one of the 4 types, and False otherwise.
is_wristband([
["A", "A"],
["B", "B"],
["C", "C"]
]) ➞ True
# Part of horizontal wristband.
is_wristband([
["A", "B"],
["A", "B"],
["A", "B"]
]) ➞ True
# Part of vertical wristband.
is_wristband([
["A", "B", "C"],
["C", "A", "B"],
["B", "C", "A"],
["A", "B", "C"]
]) ➞ True
# Part of diagonal left wristband.
is_wristband([
["A", "B", "C"],
["B", "C", "A"],
["C", "A", "B"],
["A", "B", "A"]
]) ➞ True
# Part of diagonal right wristband.
N/A