Leetcode 2434. Using a Robot to Print the Lexicographically Smallest String | Hello Interview