Qualcomm interview question

fix point calculations