Dedrone interview question

Asked a python code to generate a signal