Amazon Interview Question

2 Questions on the OA