Added class Problem166.
Added the values member and the isGood function to Problem166.
Added the solution for problem 166.