Add POJ4001 code

Not accepted yet.