Avaya Interview Question

series related codeing problem