Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Letter Queue by fed.kz
def letter_queue(com):
result = ""
for elem in com:
result = result[1:] if elem == "POP" else result + elem[-1]
return result
Oct. 12, 2018