In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".

28/04/1444
1
The given date "28/04/1444" is a valid date. The components day, month and year are all valid individually. The day 28 is a valid number as it lies between 1-30 for the month of April. Also, the year 1444 is divisible by 4 with no remainder, yet not divisible by 100. Therefore, 1444 is a leap year and the answer should be 1 as the date is valid.".