Lets start question 2.
brute-force approach