Wrote it myself. Unlikely to have been seen anywhere, since it's nonsense code. It is within the impressive part of ChatGPT's ability: sequential reasoning that requires no causal derivations of what it hasn't seen before.