Pergunta de entrevista da empresa Warner Bros. Discovery

1) find the last x element in linked list 2) sort the array having 0s,1s,2s