Domanda di colloquio di Bending Spoons

Simple programming in python questions about the expected output