IBM Interview Question

Difficult numerical series