from solution import solution test_cases = [ [[2, 1], 0], [[1, 2], 1], [[8,6,3,7,2,5,1,4], 12], ] for i, o in test_cases: print('input', i, 'output', o) print('solution', solution(i)) print()