Add problem1-2 written by php