Added the O(N^3) solution of 108