Count occurrences of state in array of objects
Filed under Airtel
The question
Given an array of objects containing student name, state, and ID, count the occurrences of each state.
No write-up yet. Related questions below have one.
Related Airtel questions
Collected from public candidate posts and coding forums. Updated Nov 2026.