Solution (source code)

= Solution

The waveform repeats after one positive and one negative interval, so its fundamental <period> is \b[$T=4\,\mathrm s$]. A two-second shift reverses its sign and is not a period.