Indmax Interview Question

programming questions like swapping without using third variable