Amazon Interview Question

system design related question including coding