TCS: Codevita: The vital Sum
Can someone tell me how to approach this problem for N = 1000, 000, 000 ?