Refactor: Delete unused variable
Refactor: Input parameters are const
Refactor: Replace std::unique_ptr<int[]> with std::vector<int>
Refactor: Replace std::unique_ptr<int[]> with std::vector<int>