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.
One example is below.
Q: [163, 290, 90, 51, 96, 86, 282, 265, 10, 85, 91, 201, 68, 126, 26, 228, 229, 236, 31, 71], k=14
A: 201
Rationale: 201 is the 14th smallest element in the input list.
Q: [79, 95, 30, 89, 165, 39, 265, 115, 202, 19, 170, 76, 164, 46, 92, 235, 213, 246, 234, 219], k=19
A:
246