i attempted the question in kodekloud engineer for resource limit , however it was marked as wrong by mentioning that pod was not running. When i checked the status of the pod it was running . PFA screenshot.
I just tried it and it worked fine.
Without seeing the content of your p1.yaml
after you edited it, I cannot tell you what you missed. If you do send a yaml file, please paste it
as a code block like this so formatting is not lost
and not a screenshot.