Help me in solving SYNMCQ5 problem

My issue

i not able to understand this problwm

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

Just check the spaces with string(before and after)