DISH interview question

Interview had some C questions