Axxcelera interview question

problem solving in c language