Generate plus state or minus state

Problem Name:
Generate plus state or minus state
Site:CodeForces
Links:
Tags:
Problem setters: