As I note in the solution: "It's certainly a very cute problem … (Defined to mean: It'll waste hours of your time.)"
Many thanks to the friend who sent me that.