Please can anyone help me solving this problem?
$$ \frac{\partial U}{\partial t} - \left(\frac{\partial U}{\partial x}\right)^2 = 0 $$
where $U=U(x,t)$ with side condition as $U(x,0)=\cos x$.
The problem is given in the following article: A. Thess, D. Spirn, B. Jüttner, "Viscous Flow at Infinite Marangoni Number", Physical Review Letters 75(25), 1995. doi:10.1103/PhysRevLett.75.4614

The article cited in OP deals with the convection problem $\partial_t \theta + v \partial_x \theta = 0$, where $v = -H\theta$ is expressed in terms of the Hilbert transform $H\theta$ of $\theta$. While discussing this model, the authors make some statements on the alternative model (p. 4615, top of 2nd column)
This is actually an Hamilton-Jacobi equation, which classical resolution relies on the Lax-Hopf formula. A Burgers-like equation is recovered after differentiation of the above PDE with respect to $x$: $$ g_t - 2 g g_x = 0, \qquad\text{with}\qquad g = \theta_x . $$ The solutions deduced from the method of characteristics satisfy the implicit equation $g = -\sin (x +2g t)$ of which no analytical solution is known. This classical solution is valid up to the breaking time $t=1/2$ when it breaks down, as displayed on the plot of the characteristics in $x$-$t$ plane below:
Along the characteristic lines, the variable $g = -\sin(x_0)$ is constant. Moreover, we have $$ \frac{\text d}{\text d t} \theta = \theta_x \frac{\text d}{\text d t} x + \theta_t = -2g\theta_x + \theta_t = -g^2 , $$ so that $\theta = \cos(x_0) - g^2 t$ along the characteristics. Thus, $$ \theta = \cos(x +2g t) - g^2 t, \qquad\text{with}\qquad g = -\sin(x +2g t) . $$ Below is a Matlab script for this computation, along with its output (requires Optimization Toolbox):