Photon Interview Question

Coding question: remove "*" from the string