Here process P1 is the producer and process P2 is the consumer.
Semaphore 'full' is initialized to '0',this means there is not item in the buffer.
Semaphore 'empty' is initialized to 'n',this means there is space for n items in the buffer.
Semaphore 'mutex' is used to guarantee mutual exclusion(initialized to 1)
In process P1, wait('empty') signifies that if there is no space in buffer then P2 cannot produce more items. Signal('full') is to signify that one item has been added to the buffer.
Similarly,in process P2, wait('full') signifies that if the buffer is empty then consumer cannot consume any item. Signal('empty') increments a space in the buffer after consumption of an item.
So, answer is (B)