Question 6Let $n\gt 1$ be an integer and $p\gt 0$ a real number. Find the maximum of $\sum_{k=1}^{n-1}x_kx_{k+1}$ over all nonnegative real $x_1,\ldots,x_n$ satisfying $\sum_{k=1}^n x_k=p$.