Started working on problem 30
something is wrong with this
Java solution is now bug free