XYZ (Turkey) interview question

Asked some coding questions regarding data structures