Interview questions
- Given a whole number, n return the sum of all the numbers from 1 to n inclusive
- Given a dictionary in the form {'year': '2016', 'month': '01', 'day': '27'} (noting the values are strings, return a datetime.date representation of the dict
- Count the number of troughs and peaks in a list eg.
ol = [2, 2, 5, 4, 1, 2, 1, 2, 2] (answer: 5, 1, 2, 1 = 4)