If $x_{1},x_{2},x_{3},\cdots \cdots , x_{n}$ be real numbers between $0$ to $1$. Then the greatest value of $\displaystyle \mathop{\sum}_{1\leq i<j\leq n} \bigg|x_{i}-x_{j}\bigg|$ is
what i try
$\displaystyle \mathop{\sum}_{1\leq i<j\leq n}\bigg|x_{i}-x_{j}\bigg|=\bigg|x_{1}-x_{2}\bigg|+\bigg|x_{1}-x_{3}\bigg|+\cdots \bigg|x_{1}-x_{n}\bigg|+\bigg|x_{2}-x_{3}\bigg|+\cdots +\bigg|x_{n-1}-x_{n}\bigg|$
i am trying using triangle inequality,
$\displaystyle \bigg|x_{1}-x_{2}\bigg|+\bigg|x_{2}-x_{3}\bigg|+\cdots +\bigg|x_{n-1}-x_{n}\bigg|\geq \bigg|x_{1}-x_{n}\bigg|$
how do i solve it help me please