Given an array of strings ['P>E','E>R','R>U'] output should be PERU another example : ['S>K','K>Y'] output : SKY
Sigiloso
code is in python but u can apply the logic in any other coding language as well. def somefn(s): a=len(s) s1='' for i in range(a): if i!=a-1: s1=s1+s[i][0] else: s1=s1+s[i][0]+s[i][2] return s1