DXC Technology interview question

swapping without using third variable square root of a number without using inbuilt functions