Amazon Interview Question

Q: Write an example of an API document for this piece of code.