Solve CountAndSay and FindPeakElement