Capgemini interview question

What is black box testing? Write java function to swap two number without using temp variable