BabyCenter interview question

Give some coding exercise.