Added answers for all the problems.