in function sir uses mod ,What is use of that?
I am not Why we are doing mod here
This is because for large values, your answer will come very large, thus whenever this kind of situation happens we use mod, so it doesn’t impact the small values but do impact large values, so that our required answer comes in some range …