# Problem Definition

## Description

cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair. For example, car(cons(3, 4)) returns 3, and cdr(cons(3, 4)) returns 4.

Given this implementation of cons:

```python
def cons(a, b):
    def pair(f):
        return f(a, b)
    return pair
```

Implement car and cdr.

## Notes

1. [GitHub - r1cc4rdo](https://github.com/r1cc4rdo/daily_coding_problem/blob/master/daily_coding_problem_01_05.py)