My solution did not work.
Not sure why sample 21 is impossible?