Create exercise1

Complete the given code