You better speak to the TTE, he may assist you in finding a seat. Convince him that you have an exam. Usually TTEs help those people with genuine requirements.
.
Alternatively, 12624 SF is avbl (3A 19 n SL 42) till MAS and then you can catch Shalimar from MAS to BBS, but it looks difficult from MAS as well.