Leetcode 1163. Last Substring in Lexicographical Order | Hello Interview