BridgeWise Interview Question

Implement counter function in a given array on int/str values