@GateOverflow04 When, we are dealing with number of bits in sequence number data, then we can take 2^30. This makes calculations damn easy.

You can even follow my answer to GATE 2022 q. I implemented this method in this year’s GATE exam too https://gateoverflow.in/371886/gate-cse-2022-question-50?show=381401#a381401