Bear with me;for this is my first time asking something on stackoverflow. I recently had an exam (probably failed) in "data structures and introduction to algorithms"