Another illustration could be a boggle board like this: T A C S O P Q H G And a dictionary that includes the words { "TOP", "SO", "SOAP", "CAP", "HOST"} . In this example, we can create "TOP" by starting from the 'T' located at (0,0), then moving to the 'O' at (1,1), and finally to the 'P' at (1,2). Similarly, "SO" can be formed by starting from the 'S' at (1,0) and then transitioning to the 'O' at (1,1). However, the word "CAP" cannot be formed because doing so would require revisiting the 'A' cell, which is not permitted. Therefore, the resulting output would be ["TOP","SO","SOAP","HOST"] .