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.
--------
Question: [161, 185, 46, 210, 138, 225, 245, 139, 187, 107, 124, 128, 249, 253, 135, 95, 234, 278, 261, 38], k=8

Answer: 138


Question: [234, 140, 29, 61, 116, 256, 183, 137, 255, 265, 245, 122, 200, 63, 50, 155, 28, 154, 39, 271], k=17

Answer: 255


Question: [297, 154, 166, 65, 256, 282, 150, 241, 67, 255, 79, 232, 27, 192, 81, 298, 144, 155, 252, 111], k=11

Answer:
166


