Quest Global interview question

Memory leak in iOS algorithm