Amazon Interview Question

Like sorting question and a grid type question