This is from a Brazilian math contest for college students (OBMU):
Given a positive integer $n$, find the maximum value of
$$x_1^3+x_2^3+ \cdots + x_n^3$$
where $x_j$ is a real number for all $j \in \{1,2,\cdots, n\}$ such that $x_1 + x_2 + \cdots + x_n = 0$ and $x_1^2 + x_2^2 + \cdots + x_n^2 = 1$ .
One could indeed use Lagrange multipliers, but I thought I'd try to get geometric intuition in three dimensions.
This shows the constraint sphere $x_1^2 + x_2^2 + x_3^2=1$ and the constraint plane $x_1 + x_2 + x_3 = 0$, and the locus of their intersection, a (black) ring. The plane is perpendicular to the normalized vector ${\bf a} = (1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3})$. One (normalized) vector perpendicular to ${\bf a}$ is ${\bf b} = \left( \frac{1}{\sqrt{6}},\frac{1}{\sqrt{6}},-\frac{2}{\sqrt{6}} \right)$. Another (normalized) vector perpendicular to both is ${\bf c} = \left( -\frac{1}{\sqrt{2}},\frac{1}{\sqrt{2}},0\right)$, determined by ${\bf c} = {\bf a} \times {\bf b}$.
Thus any potential solution point can be described as $(x_1, x_2, x_3) = \cos (\theta) {\bf b} + \sin (\theta) {\bf c}$.
Direct substitution, cubing the components and simplification yields $x_1^3 + x_2^3 + x_3^3 = -\frac{\cos (3 \theta )}{\sqrt{6}}$.
It is a simple matter to maximize this function of a single variable $\theta$ and find that the solution is $1/\sqrt{6}$.
Not surprisingly there are three equivalent solutions, corresponding to the permutation of the three variables.
As a check, I find the solution vector with $\theta = 1$ (from the graph) to be ${\bf s} = (-0.374432, 0.815587, -0.441155)$ indeed obeys the constraints and leads to the criterion sum-of-cubes to be $0.404163$, as visible on the graph.