Changed signature of method getTrends

Changed signature of method getTrends to receive an instace of Iterable<Integer> instead of an instance of List<Integer> since its only purpose is to be traversed.