You are given a string s and a list indices of integers. Every value in indices is a valid index into s (0 <= i < len(s)).
Return a str formed by concatenating s[i] for each i in indices, in the order the indices are given. An index may appear more than once, and if indices is empty the result is the empty string.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
'programming'
[0, 3, 7]
Returns
'pgm'