php solution for easy problem 125