Amazon interview question

Find Mode and the frequency