Bending Spoons interview question

Logic task live with interviewer