Create DistinctPowers.java

Problem statement can be found here:
http://projecteuler.net/problem=29