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