Pregunta de entrevista de Bending Spoons

Tasks of logic, probability and coding