Add POJ1684 code

POJ1684 accepted