You will be given a definition of a task first, then some input of the task.
In this task, you are given a list of integers and an integer k. You need to find the kth smallest element in the input list and return that.

[90, 107, 78, 117, 51, 37, 210, 186, 155, 81, 245, 214, 203, 190, 67, 149, 99, 116, 21, 89], k=18
Output:
210