Bending Spoons interview question

Logic problems and database questions