Skip to content

Instantly share code, notes, and snippets.

View faazah's full-sized avatar

Md Faizan faazah

View GitHub Profile
/*
You have been given a list of products which is having property productName, quantity and description.
PROBLEM STATEMENTS:
1. you need to write a function say, getUniqueProductCount which should return count of each Product(as an object) present in the given list of Products considering Product Name as Key.
Sample Output for the given listOfProducts will be :