Indmax interview question

programming questions like swapping without using third variable