Amazon Interview Question

Two case questions that involved math and were fairly easy