WA on test #4.
WA on test #6.
Code for problem 101B.