add solution to POJ 1625