Amazon Interview Question

Return k largest and k smallest elements from given list.