add solution to #181 easy.