I'm getting the error as follows
Sketch uses 2952 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 196 bytes (9%) of dynamic memory, leaving 1852 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\.\COM5": Access is denied.
Failed uploading: uploading error: exit status 1
The board I am using is Arduino Uno and checked the ports too. Also restarted and installed IDE again. But still not being able to deal with it. I will be happy with the help!