Arista Networks Interview Question

How would you design a NAT in C.