working largest series product implementation