12541 - Birthdates


Difficulty : easy

Solution Description :
Adhoc problem

Just convert dd mm yyyy to a one integer
x = yyyy*10000+mm*100+dd
Suppose input
Alice 30 12 1990
x = 1990*10000+12*100+30 = 19901230

Just find the minimum and maximum value of x this time you need to store the name also.