##Algorithm implemented with cpp Problems with solution using cpp; Detailed comments and explanations; As of now, problems are mostly going to be coming from lc.