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.

[118, 135, 157, 125, 187, 92, 41, 91, 72, 69, 167, 38, 154, 85, 26, 213, 287, 271, 212, 138], k=3
41

[37, 237, 171, 87, 114, 258, 187, 65, 278, 82, 145, 247, 239, 250, 58, 289, 27, 294, 150, 163], k=5
82

[174, 74, 209, 109, 124, 272, 236, 231, 115, 254, 165, 234, 21, 64, 198, 264, 166, 23, 29, 144], k=5

74