Php Array Change Value Javascript Interview Question