1+2+3+4+...+2019+2020+2021+2022==S, solve for S
S ==[2022 x 2023] / 2 ==2,045,253
1 + 2 + 3+ 4+.....2019+2020+2021+2022 flip it
2022+2021+2020+2019+......+ 4+ 3+ 2+ 1
add it, which is then 2023 + 2023+ 2023+ 2023....., and there were 2022 of them in the first place, so multiply 2022 by 2023.
There are 2 sets of them, so divide by 2 because there was 1 in the question.