WD Interview Question

Print a string of n alternating +-+-.