Given two arrays, which represent two sandwiches, return whether both sandwiches use the same type of bread. The bread will always be found at the start and end of the array.
hasSameBread(
["white bread", "lettuce", "white bread"],
["white bread", "tomato", "white bread"]
) ➞ true
hasSameBread(
["brown bread", "chicken", "brown bread"],
["white bread", "chicken", "white bread"]
) ➞ false
hasSameBread(
["toast", "cheese", "toast"],
["brown bread", "cheese", "toast"]
) ➞ false