10523 – Very Easy !!!

C++ Code:
But it will not work as c++ don’t support BigIntger so we have to write it in java my code:

Java:

 

 

Spread the love