I have an assignment said that to create a findString function that accept 2 string which are 'target' and 'query', and that returns a list of all indices in target where query appears. If target does not contain query, return an empty list.
For example: findString(‘attaggtttattgg’,’gg’)
return:
[4,12]
I dont know how to start off with this function writing at all. Please help me everyone. Thank you so much!!!