Amazon Interview Question

Describe how you solved two different problems with the same solution