Infosys interview question

frequency counter pattern, angular concepts