Finish 39and 40 of code interview.