Qualcomm interview question

write a program