Adapt to interviewer coding preferences | Amazon Interview Question