IBM interview question

Difficult numerical series