Php Regex Replace With Array Interview Question