Amazon Interview Question

there was a coding assessment