Complete the two functions below:

See the docstrings and pytest code for more info. Keep calm and code in Python, happy Cyber Monday!