Task: Implement a Unique Integer Pairing Function
Task: Implement a Unique Integer Pairing Function: a task in Terminal-Lego-15k (Harbor dataset). Your task is to implement a pairing function that maps two non-negative integers to a single unique integer, along with its inverse function that recovers the original pair.
The task
Your task is to implement a **pairing function** that maps two non-negative integers to a single unique integer, along with its inverse function that recovers the original pair.
Part of PrimeIntellect/Terminal-Lego-15k.