Sir please tell me how do i expand this code for n upto 10^9
hello @sauravzt7
use map in place array.
check this->