Fixed c issue in problem2