Score : 200 points
You are given a string S of length N consisting of lowercase English letters, and an integer K.
Print the string obtained by replacing every character in S that differs from the K-th character of S, with *
.
Input is given from Standard Input in the following format:
N S K
Print the string obtained by replacing every character in S that differs from the K-th character of S, with *
.
5 error 2
*rr*r
The second character of S is r
. When we replace every character in error
that differs from r
with *
, we get the string *rr*r
.
6 eleven 5
e*e*e*
9 education 7
******i**