I\'m trying to take time input from the user \'11:59 AM\' but as soon as I give input it terminates.
Input format of \'p\' is 11:59 AM and of \'s\' is 10:00