I have a problem at my work place and I feel it's my inferiority complex. I was given a task to be completed to which I am kind of new.So It took me more time and I was partially able to complete it. But then my senior took control over my work and started working on that task.He was able to complete it within two days and he showed the demo as well.I feel bad and I worry what my manager or team leader would think about me. How ever the Senior guy himself motivated me saying everybody undergoes such phase in their career and motivated me to be upbeat. I feel bad and I don't know how to react myself. How should I overcome this complexity?