const validTime = (str)=> {
//write the code here.
}
Example:
For time = \'13:56\' the output validTime(time) = true
F