Harmonic interview question

Basic questions