update challenge streaks algorithm using Enumerable.chunk method