Evolent Interview Question

logic of swapping without 3rd variable