QA Set1

Actually O(n^2) here. The array.count is an O(n) method that takes place within the array.each loop, making it O(n^2).