problem no 2 solution