Netstratum interview question

Valid paranthesis, Leap year, Duplicate characters in string