OYO interview question

GCD, Swift, XCODE, Data Structure