accepted : week 1 problem 1