assert changing_direction([6, 6, 6, 4, 1, 2, 5, 9, 7, 8, 5, 9, 4, 2, 6]) == 7 ... Fail
What is 7? I counted 8! 6-4 1-2, 9-7, 7-8, 8-5, 5-9, 9-4, 2-6