'''
https://programmers.co.kr/learn/courses/30/lessons/42748
K๋ฒ์งธ์
1. ์ฃผ์ด์ง ๋ฐฐ์ด์ i~j ์ธ๋ฑ์ค์ ๋ถ๋ถ ๋ฐฐ์ด์ ์ ๋ ฌ ํ k๋ฒ์งธ ๊ฐ ์ฐพ๊ธฐ
2. ๋ฌธ์ ๊ทธ๋๋ก ํ์ด
'''
def solution(array, commands):
return [ sorted(array[ a - 1 : b ])[ c - 1 ] for (a, b, c) in commands ]
'''
'''