• + 1 comment

    amazing solution!!

    PS: Dont forget to delete the allocated memory on the heap by using delete[] at the end of the code....