Leetcode 1299. Replace Elements with Greatest Element on Right Side | Hello Interview