Add ugly problem 87 solution