def test_provided_2(self): self.assertEqual(4, solution([1, 2, 5, 3, 4, 7, 8, 6]))
def test_provided_1b(self): self.assertEqual(7, solution([1, 2, 5, 3, 7, 8, 6, 4]))
def test_provided_0b(self): self.assertEqual(-1, solution([2, 5, 1, 3, 4]))
def test_provided_1a(self): self.assertEqual(-1, solution([5, 1, 2, 3, 7, 8, 6, 4]))
def test_provided_0a(self): self.assertEqual(3, solution([2, 1, 5, 3, 4]))