Infosys Interview Question

1. Top k frequency elements