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.

[249, 276, 166, 184, 281, 256, 290, 207, 279, 200, 287, 85, 289, 214, 27, 105, 147, 93, 232, 124], k=18
287

[232, 177, 41, 14, 62, 42, 104, 91, 136, 95, 210, 71, 80, 138, 287, 285, 298, 28, 220, 156], k=12
138

[46, 190, 169, 73, 62, 197, 289, 45, 193, 203, 191, 233, 128, 281, 14, 224, 185, 86, 94, 108], k=8

108

