Securecell AG Interview Question

I was asked on basic Algorithm questions