you give string stamp target initially stre s length targetlength si in turn place stamp s replace letter s correspond letter stampfor example stamp abc target abcba s initially in turn canplace stamp index 0 s obtain abcplace stamp index 1 s obtain abc orplace stamp index 2 s obtain abcnote stamp fully contain boundary s order stamp ie place stamp index 3 sWe want convert s target 10 targetlength turnsReturn array index leftmost letter stamp turn if obtain target s 10 targetlength turn return array Example 1input stamp abc target ababcoutput 02explanation initially s Place stamp index 0 abc Place stamp index 2 ababc102 accept answer answersExample 2input stamp abca target aabcacaoutput 301explanation Initially s Place stamp index 3 abca Place stamp index 0 abcabca Place stamp index 1 aabcaca Constraints1 stamplength targetlength 1000stamp target consist lowercase english letter