Ad
  • Default User Avatar

    Your solution isn't wrong, but it's naive, and there are more efficient approaches to solving the problem. See if you can find one :)