https://www.educative.io/courses/decode-coding-interview-cpp/diy-string-to-integer-atoi
Learn to implement the atoi function in C++ to convert strings with optional signs and spaces into 32-bit signed integers correctly.
convert stringbitintegerusingatoi