Probability of solving specific problem independently by A and B are \(\frac{1}{2}\) and \(\frac{1}{3}\) respectively. If both try to solve the problem independently, find the probability that
(i) the problem is solved
(ii) exactly one of them solves the problem.