solution to count and say problem