Problem 001: Provided C file for naive implementation