LenDenClub interview question

Swapping logic (Any 3 logics have to provide)