Adding solution for 187