https://muzahid-nafiz.medium.com/problem-solving-in-c-part-1-nested-loop-function-and-pointer-bc3c8f8cc850