NextSphere interview question

linked list, array, pattern programs.