Tresys interview question

Some tricky in place algorithms