Qualcomm Interview Question

questions about fading channel, code question using c++