Bending Spoons interview question

Logic and programming problems were asked