Pregunta de entrevista de Bending Spoons

Logic and programming problems were asked