Concept Flow - String searching (contains, strfind)
Start with string S
Search for substring sub
Return indices of sub
End
The program starts with a main string and a substring to find. It checks if the substring exists inside the main string. If yes, it returns the positions; if no, it returns empty.