Hacktober2022 Add working and valid code for Data structures and algorithms Any programming language is accepted.