Problem 1299 · Easy
Replace each element with the greatest element strictly to its right.
Open the interactive visualisation