Sample Test A: problem 06