In this task, you are given a list of integers and an integer k. You need to find the kth largest element in the input list.

[100, 154, 127, 273, 78, 40, 163, 203, 252, 155, 216, 108, 205, 257, 156, 20, 178, 266, 145, 107], k=7
203

[98, 268, 82, 250, 174, 243, 66, 280, 127, 71, 54, 164, 294, 20, 251, 175, 78, 254, 201, 84], k=2
280

[183, 241, 41, 65, 87, 212, 263, 268, 46, 107, 230, 154, 192, 238, 177, 148, 24, 267, 262, 174], k=2

267