Synopsys interview question

low pass and high pass filter waveform for square wave inputs