[LeetCode] 1299. Replace Elements with Greatest Element on Right Side