Pregunta de entrevista de PharmEasy

given array a = [1,2,3] resultant array = [ (mod(1-2)+mod(1-3)) , (mod(2-1) + mod(2-3)), (mod(3-1)+mod(3-2))]