Objective:
Solve the problem given in Problems/Data-structures/Day-04/q001.md
Folder:
Problems/Data-structures/Day-04/sol/your_name
File naming:
Solution1.cpp, Solution2.cpp, Solution3.cpp, …
or any other language
Each solution must include (inside the .cpp as comments):
Short problem statement
Approach
Time & space complexity
Example I/O (optional)
Clean, compiling C++ code
PLEASE UPLOAD YOUR SUBMISSION LINK TOO AS COMMENTS IN THE .cpp FILE
Please refrain from use of AI (even in approach statements)