Amazon Interview Question

Signed an NDA, cannot write this.