Securecell AG interview question

I was asked on basic Algorithm questions