Amazon Interview Question

I am unable to share this.