add K-consecutive heads solution