Domanda di colloquio di Securecell AG

I was asked on basic Algorithm questions