Amazon Interview Question

Find Mode and the frequency