Ericsson interview question

the questions asked on C