what is this->key=key and why did we not write this->value=val but instead value=val?
Implementation of node class
you can write it like this also
but because here both name are different one is value and other is val so we can also directly assign