Amazon Interview Question

Very technical question and sometimes problem to understand the recruiter