Tesla interview question

Swap even and odd bits