Added Medium 01

Completed the first easy challenge.
Not a good use of memory but it works.