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.

[275, 114, 223, 89, 160, 20, 129, 51, 43, 64, 169, 83, 184, 270, 240, 42, 183, 227, 113, 232], k=8
113

[242, 54, 259, 204, 67, 182, 168, 17, 287, 143, 272, 78, 48, 91, 224, 84, 201, 126, 18, 199], k=13
199

[194, 272, 269, 186, 259, 148, 150, 53, 222, 168, 197, 133, 31, 12, 29, 205, 67, 123, 81, 89], k=7

89