When you compress the spring by 10 cm, you are doing work on the system, which increases the elastic potential energy of the spring-book system. When you let go of the book, the spring expands and releases the stored potential energy, which is converted back into kinetic energy of the book as it is pushed up. Therefore, the answer is:
B. The elastic potential energy of the system increases.