e-con Systems interview question

logical puzzles, c programming and basic dsa