We have,
p=99
Since,
⇒p3+3p2+3p+1−1
⇒(p+1)3−1
⇒(99+1)3−1
⇒(100)3−1
⇒1000000−1
⇒999999
Hence, this is the answer.