AMAZON IS BURNING AMAZON IS BURNING!
SAVE THE ANIMALS!
The largest Rainforest ‘THE AMAZON’ is burning for the past 16 days.We
need to save the animals present in the forest.Each type of animal will be
identified by an integer value. Each time a particular kind of animal is
spotted, its id number will be added to your array of sightings. We need
your help to find out which animal is common.You are provided with a list of
sightings. Your task is to print the type number of that animal and if two or
more types of animals are equally common, choose the type with the
smallest ID number.
For example: assume your animal sightings are of types arr=[1,1,2,2,3] .
There are two each of types 1 and 2 , and one sighting of type 3 . Pick the
lower of the two types seen twice: type 1.
TestCases : link
Submit final ans as product of all answers
Kunal Desai : 7715051136
Neelraj Patil : 9930671144