Pergunta de entrevista da empresa Rally Health

what is deadlock and racing condition? what is the difference between array and list? online coding: print out the tree value using Breadth-First Traversal. each line contain all the values of the same tree level.