Added is_recurring_cycle function for problem 26.
Solved problem 26.