BJIT interview question

Q: Simple problem solving question(Written question 1)