Pergunta de entrevista da empresa Google

Provided a waveform and asked to design a circuit for that.