LenDenClub Interview Question

Swapping logic (Any 3 logics have to provide)