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.

[58, 120, 69, 63, 71, 205, 237, 129, 43, 163, 159, 132, 42, 274, 171, 117, 295, 144, 188, 242], k=19
274

[288, 121, 80, 59, 294, 62, 131, 129, 122, 95, 275, 34, 202, 253, 86, 136, 236, 217, 174, 216], k=17
253

[237, 140, 205, 45, 194, 185, 280, 274, 263, 207, 198, 213, 29, 20, 245, 187, 58, 40, 155, 73], k=10

187