added problemB solution and acm1 in problemA