KSB interview question

Oops questions, reasoning ,quants, basic codes