Microsoft Interview Question

Design and algorithm, give int 1 return int 2, and int 2 return int 1.