Updated Part2A and Part2B to auto generate array AND print time complexity analysis