Book allocation problem

whats wrong in my code

@sktg99 hey sanchit changing your data type int to long long int resolve your issue