JPMorganChase interview question

Python datetime manipulation; Probability of triangle