Problem #2 BEST SOLUTION added