BabyCenter Interview Question

Give some coding exercise.