In the first technical, they asked a question related to closure and capture values which was something like:
var string = "car"
let closure = { [string] in
print("I'm driving \(string)")
}
string = "truck"
closure()
Then a question related to lazy keyword whether lazy stuff is thread safe or not.
Then a question where there's a kingdom in which there is a king. If the king dies, his child becomes the king otherwise the dead king's sibling becomes the next king.
Write a function or computed property to get the currentHeir. (Had to use tree with depth first search to do this.)