fibinacci series exercise with required modifications