Shortest Distance to Target String in a Circular Array

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(nL)

Space Complexity

O(1)