add new solution to EOJ 1852