Brute Force

Simple brute force algorithm on an array