Write a function to sort a dictionary by its keys. Define a function that takes a dictionary as a parameter and returns a sorted list of the keys of the dictionary. Example: Input: {1: 10, 4: 40, 2: 20, 3: 30} Output: [1, 2, 3, 4] Challenge: Do not use for-loop.